package itqf.service;


import itqf.dao.GoodTypeDaoImpl;
import itqf.dao.impl.GoodTypeDao;
import itqf.entity.GoodTypes;
import itqf.service.impl.GoodTypesService;

import java.util.List;

/**
 * com.itqf.service
 * 2020/9/15
 */
public class GoodTypesServiceImpl implements GoodTypesService {
    GoodTypeDao goodTypeDao = new GoodTypeDaoImpl();
    @Override
    public List<GoodTypes> findAllGoodTypes() {
        List<GoodTypes> list = goodTypeDao.findAllTypes();
        return list;
    }

    @Override
    public int insertGoodsType(String tname) {
        return goodTypeDao.insertGoodsType(tname);
    }
}
